<!-- 跳转中间页面 -->
<template>
  <div>中转站</div>
</template>

<script setup name="transferStop">
import { onBeforeMount } from "vue";
import { useRoute, useRouter } from 'vue-router'
const route = useRoute()
const router = useRouter()

onBeforeMount(() => {
  if (JSON.parse(sessionStorage.getItem('isBack'))) {
    router.back()
  } else {
    router.push(`/play?id=${route.query.id}`)
  }
})
</script>
